package com.ruoyi.standingbook.sanitationvehicle.mapper;

import com.ruoyi.common.core.mapper.BaseMapperPlus;
import com.ruoyi.standingbook.sanitationvehicle.domain.SanitationVehicle;
import com.ruoyi.standingbook.sanitationvehicle.domain.bo.SanitationVehiclePicBo;
import com.ruoyi.standingbook.sanitationvehicle.domain.vo.SanitationVehicleFinishedSumVo;
import com.ruoyi.standingbook.sanitationvehicle.domain.vo.SanitationVehicleVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 环卫作业车任务完成进度Mapper接口
 *
 * @author lq
 * @date 2024-01-03
 */
public interface SanitationVehicleMapper extends BaseMapperPlus<SanitationVehicleMapper, SanitationVehicle, SanitationVehicleVo> {

    List<SanitationVehiclePicBo> selectPicByDate(@Param("date") String date);

    /**
     * 统计
     * @param date
     * @return
     */
    SanitationVehicleFinishedSumVo selectSumByDate(@Param("date") String date,@Param("community")String community);

    Integer selectNumSumByDate(@Param("date") String date, @Param("community")String community,
                               @Param("status") String status);

}
